<?php
/* @var $this MemberController */
/* @var $model Member */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'会员管理'=>array($this->pre_module_url.'/member/admin'),
	'会员管理'=>array($this->pre_module_url.'/member/admin'),
);

?>

<div class="pro_filter c_f">
	<div class="filter f_l">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'action'=>Yii::app()->createUrl($this->route),
		'method'=>'get',
	)); ?>
		<label>会员等级：</label>
		<?php echo CHtml::activeDropDownList($model,'zmg_id',MemGroup::model()->getMemGroup(),array(
				'class'=>'s_ipt w_120',
				'empty'=>'会员类型',
				'ajax' =>array(
							'type'=>'GET',
							'url'=>$this->pre_module_url.'/cmpTemplates/getMemType',
							'update'=>'#Member_level',
							'data'=>array('mid'=>"js:this.value")
							),
				))?>
		<?php echo $form->dropDownList($model,'level',MemType::model()->getMemtype(),array('class'=>'s_ipt w_120','empty'=>'会员等级'))?>
		<label>会员名称：</label>
		<?php echo $form->textField($model,'zm_name',array('class'=>'mr20')); ?>
		<?php echo CHtml::submitButton(Yii::t('adm','Search'),array('class'=>'mem_bgx mem_btn01')); ?>
	<?php $this->endWidget(); ?>
	</div>
</div>

 <table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="" class="pl15">用户名</th>
		<th width="18%">会员类型</th>
		<th width="18%">会员等级</th>
		<th width="18%">积分</th>
		<th width="18%">认证类型</th> 
		<th width="12%">操作</th>                                                    
	</tr>
</table>


<?php 
$this->widget('zii.widgets.CListView', array(  
    'dataProvider'=>$model->search(),  
    'itemView'=>'_view',    
    'emptyText'=>'暂时没有数据',  
    'selectAll'=>array('ids[]','id[]'),  
	'itemsTagName'=>'table',
	'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),
    'artLink'=>array(  
        //批量删除  
        array(Yii::t('adm','Delete All'),$this->pre_module_url.'/product/downshelf','确认批量删除选中会员信息吗！'),  
		//发送邮件
	//	array(Yii::t('adm','Sent Email'),$this->pre_module_url.'/emailTemplates/sent','确认发送邮件给指定会员吗！'),
    ), 
	'batchItem'=>array(
		//添加会员
		CHtml::linkbtn(Yii::t("adm","Create"),array('create'))
	),
    ));  
?>  
